public class MyThread1 {
    public static void main(String[] args) {
        Thread t1 = new Thread(){
            @Override
            public void run() {
                System.out.println("使用匿名内部类创建Thread对象");
            }
        };
    }
}
